package com.yl.chainStore.mapper.pay

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.yl.chainStore.entity.pay.PayCompanyDeptItem
import com.yl.chainStore.pojo.vo.warehouse.GoodCountSelectVo
import com.yl.chainStore.pojo.vo.warehouse.WarehouseGoodCountSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

@Mapper
interface PayCompanyDeptItemMapper : BaseMapper<PayCompanyDeptItem> {


	/**
	 * 添加数量
	 */
	fun addCount(
		@Param("id") id: Long,
		@Param("count") count: Int
	)

	/**
	 * 扣除数量
	 */
	fun subCount(
		@Param("id") id: Long,
		@Param("count") count: Int
	)

	/**
	 * 添加总价值
	 */
	fun addSumMoney(
		@Param("id") id: Long,
		@Param("sumMoney") sumMoney: Long
	)

	/**
	 * 扣除总价值
	 */
	fun subSumMoney(
		@Param("id") id: Long,
		@Param("sumMoney") sumMoney: Long
	)




}